﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/MasterPage/Site1.Master" AutoEventWireup="true" CodeBehind="PricesManager.aspx.cs" Inherits="TARS.AdminCP.Prices" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadSkinManager ID="Metro" runat="server" Skin="Hay" />
        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="true" />
        <div>

            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                </telerik:RadAjaxManager>
                <label for="NamesDDL"><b>Filter:</b></label>
                <div style="margin-top: 5px; margin-bottom: 15px;">
                    <telerik:RadComboBox ID="cboBranchesInfo" runat="server" DataTextField="ZoneName" DataValueField="ID" AutoPostBack="True" EnableLoadOnDemand="True" Width="250px" Skin="Metro" OnSelectedIndexChanged="cboBranchesInfo_SelectedIndexChanged">
                    </telerik:RadComboBox>

                    <br />
                    <telerik:RadComboBox ID="cboCarrierType" runat="server" AutoPostBack="True" DataTextField="CarrierTypeName" DataValueField="ID" EnableLoadOnDemand="True" Skin="Metro" Width="250px" Enabled="False" OnSelectedIndexChanged="cboCarrierType_SelectedIndexChanged">
                    </telerik:RadComboBox>
                    <br />
                    <telerik:RadButton ID="btnDropZone" Enabled="false" runat="server" ToggleType="Radio" ButtonType="ToggleButton"
                        GroupName="Radios" AutoPostBack="true" OnClick="btnDropZone_Click">
                        <ToggleStates>
                            <telerik:RadButtonToggleState Text="Drop Zone"></telerik:RadButtonToggleState>
                            <telerik:RadButtonToggleState Text="Drop Zone"></telerik:RadButtonToggleState>
                        </ToggleStates>
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnWeightType" Enabled="false" runat="server" ToggleType="Radio" ButtonType="ToggleButton"
                        GroupName="Radios" AutoPostBack="true" OnClick="btnWeightType_Click">
                        <ToggleStates>
                            <telerik:RadButtonToggleState Text="Weight Type"></telerik:RadButtonToggleState>
                            <telerik:RadButtonToggleState Text="Weight Type"></telerik:RadButtonToggleState>
                        </ToggleStates>
                    </telerik:RadButton>
                    <br />
                    <telerik:RadComboBox ID="cboCustom" runat="server" AutoPostBack="True" EnableLoadOnDemand="True" Skin="Metro" Width="250px" Enabled="False" OnSelectedIndexChanged="cboCustom_SelectedIndexChanged">
                    </telerik:RadComboBox>
                    <br />
                    <telerik:RadButton ID="btnShow" Enabled="false" runat="server" Text="Show" Skin="Metro" Width="240px" AutoPostBack="true" OnClick="btnShow_Click"></telerik:RadButton>
                </div>
                <telerik:RadGrid ID="RadGrid1" EnableLinqExpressions="False" runat="server"
                    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
                    AutoGenerateEditColumn="True" CellSpacing="0" GridLines="None" Skin="Hay" OnItemDataBound="RadGrid1_ItemDataBound1" OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" Visible="False" OnUpdateCommand="RadGrid1_UpdateCommand">
                    <ClientSettings>

                        <Selecting AllowRowSelect="True" />
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    </ClientSettings>
                    <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom">
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="NewID" EditFormHeaderTextFormat=""
                                FilterControlAltText="Filter NewID column" HeaderText="NewID"
                                SortExpression="NewID" UniqueName="NewID" Visible="false">
                                <ColumnValidationSettings>
                                    <ModelErrorMessage Text="" />
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn DataField="DropZoneName" FilterControlAltText="Filter DropZoneName column" HeaderText="Drop Zone's Name" SortExpression="DropZoneName" UniqueName="DropZoneName">
                                <EditItemTemplate>
                                    <telerik:RadComboBox runat="server" ID="cboDropZone" EnableLoadOnDemand="True"
                                        DataValueField="ID" DataTextField="DropZoneName" AutoPostBack="true"
                                        HighlightTemplatedItems="true" Height="140px" Width="220px" DropDownWidth="420px"
                                        OnSelectedIndexChanged="cboDropZone_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="DropZoneNameLabel" runat="server" Text='<%# Eval("DropZoneName") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn DataField="WeightTypeName" FilterControlAltText="Filter WeightTypeName column" HeaderText="Weight Type's Name" SortExpression="WeightTypeName" UniqueName="WeightTypeName">
                                <EditItemTemplate>
                                    <telerik:RadComboBox runat="server" ID="cboWeightType" EnableLoadOnDemand="True"
                                        DataValueField="ID" DataTextField="WeightTypeName" AutoPostBack="true"
                                        HighlightTemplatedItems="true" Height="140px" Width="220px" DropDownWidth="420px"
                                        OnSelectedIndexChanged="cboWeightType_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="WeightTypeNameLabel" runat="server" Text='<%# Eval("WeightTypeName") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Prices" FilterControlAltText="Filter Prices column" HeaderText="Prices" SortExpression="Prices" UniqueName="Prices">
                                <ColumnValidationSettings>
                                    <ModelErrorMessage Text="" />
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" FilterControlAltText="Filter Active column" HeaderText="Active" SortExpression="Active" UniqueName="Active">
                            </telerik:GridCheckBoxColumn>
                            <telerik:GridDateTimeColumn DataField="CreatedTime" FilterControlAltText="Filter CreatedTime column" HeaderText="Created Time" PickerType="DateTimePicker" SortExpression="CreatedTime" UniqueName="CreatedTime" EditFormHeaderTextFormat="">
                                <ColumnValidationSettings>
                                    <ModelErrorMessage Text="" />
                                </ColumnValidationSettings>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle PageSizeControlType="RadComboBox" />
                    </MasterTableView>
                    <PagerStyle PageSizeControlType="RadComboBox" Mode="NextPrevNumericAndAdvanced" />
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
            </telerik:RadAjaxPanel>

            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
            </telerik:RadAjaxLoadingPanel>
        </div>
</asp:Content>
